package com.imooc.ad.dao;

import com.imooc.ad.entity.AdUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 广告系统用户操作接口
 * Created by lzq on 2019/3/1
 */
public interface AdUserRepository extends JpaRepository<AdUser, Long> {

    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
    AdUser findByUsername(String username);


}
